# filename: example8_11.py

class StudentClass:
    def __init__(self, name):
        self.name = name

    def lucky(self):
        s = 0
        for c in self.name:
            s += ord(c) % 100
        return s


stu1 = StudentClass("Zhang San")
stu2 = StudentClass("Li Si")
print("The lucky number of", stu1.name, 'is', stu1.lucky())
print("The lucky number of", stu2.name, 'is', stu2.lucky())